﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SelfControlOverallUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.IncorruptArchives.SelfControlOverall.SelfControlOverallUserControl" %>
<%@ Register Src="../IncorruptLeftMenu/IncorruptLeftMenuUserControl.ascx" TagName="IncorruptLeftMenuUserControl"
    TagPrefix="uc1" %>
     <script type="text/javascript">

         $(document).ready(function () {


         });

         function RedirectToViewSelfControlOverall(sender, CaseId) {
             sender.href = "SelfControlOverallDetails.aspx?CaseId=" + CaseId;
             return false;
         }

         function RedirectToCreateSelfControlOverall(sender) {
             sender.href = "CreateSelfControlOverall.aspx";
             return false;
         }

   
</script>

<div>
    <table class="main">
        <tr>
            <td valign="top" width="25%" runat="server" id="tdLeftMenu">
              <uc1:IncorruptLeftMenuUserControl ID="IncorruptLeftMenuUserControl" runat="server" />
            </td>
               <td valign="top" width="75%" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td width="60%">
                                        <h2 class="title">
                                            <asp:Label ID="lblTitle" runat="server" Text="内部监督有关事项自查报表(综合部门)"></asp:Label>
                                        </h2>
                                    </td>
                                    <td align="right" width="40%">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="60%">
                                    </td>
                                    <td align="right" width="40%">
                                        <img src="/_layouts/JM.JCY.Resource/images/plus.png" width="12" />
                                        <asp:LinkButton ID="lkbCreateSelfControlOverall" runat="server" Text="创建新纪录" OnClientClick="RedirectToCreateSelfControlOverall(this)">
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                            <hr id="hr1" />
                            <table width="100%">
                                <tr>
                                    <td width="100%">
                                        <div id="content">
                                            <asp:GridView ID="gvBC" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                                                GridLines="Horizontal" CssClass="altrowstablebc" OnRowDataBound="gvBC_DataBound"
                                                Width="100%" EnableModelValidation="True">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="部门">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lbDept" runat="server" Text='<%#Eval("Dept")%>' OnClientClick='<%# String.Format("RedirectToViewSelfControlOverall({0},{1})","this",Eval("ID")) %>'></asp:LinkButton>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="25%" />
                                                        <ItemStyle Width="25%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="填报人">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFiller" runat="server" Text='<%# Eval("Filler") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="15%" />
                                                        <ItemStyle Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="职务">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblPosition" runat="server" Text='<%# Eval("Position") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle Width="15%" />
                                                        <ItemStyle Width="15%" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="填报日期">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFillDate" runat="server" Text='<%#Eval("FillDate")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            </tr>
    </table>
</div>